cmake_minimum_required (VERSION 2.8)

project (CppDemo)

add_compile_options(-std=c++11)

# find current dir all files
# files' name save to DIR_SRCS
aux_source_directory(. DIR_SRCS)

# add FunTool child Dir
add_subdirectory(FunTool)

# generate exe
add_executable(ThreadDemo ${DIR_SRCS})

# add static lib
target_link_libraries(ThreadDemo FunTool)
